package jml.config.cmd;

import java.util.ArrayList;
import java.util.Hashtable;

public class Command
{
	private ArrayList<String> params;
	private Hashtable<String,String> props;
	private Hashtable<String,String> appParams;;
	private String group;
	private String name;
	private String cmd;
	private boolean isScript;
	
	private String runtimeScript;
	private String defaultScript;

	@Override
	public String toString()
	{
		return "Command [group="+group+", name="+name+", path="+cmd+", isScript="+isScript+", props="+props+", params="+params+"]";
	}


	public Command()
	{
		params = new ArrayList<String>();
		props = new Hashtable<String,String>();
		setAppParams(new Hashtable<String,String>());
	}
	
	
	public ArrayList<String> getParams()
	{
		return params;
	}
	public void setParams(ArrayList<String> params)
	{
		this.params=params;
	}

	public Hashtable<String,String> getProps()
	{
		return props;
	}
	public void setProps(Hashtable<String,String> props)
	{
		this.props=props;
	}
	public String getGroup()
	{
		return group;
	}
	public void setGroup(String group)
	{
		this.group=group;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name=name;
	}

	public String getCmd()
	{
		return cmd;
	}


	public void setCmd(String cmd)
	{
		this.cmd=cmd;
	}


	public boolean isScript()
	{
		return isScript;
	}
	public void setIsScript(boolean isScript)
	{
		this.isScript=isScript;
	}

	public Hashtable<String,String> getAppParams()
	{
		return appParams;
	}


	public void setAppParams(Hashtable<String,String> appParams)
	{
		this.appParams = appParams;
	}


	public String getRuntimeScript()
	{
		return runtimeScript;
	}


	public void setRuntimeScript(String runtimeScript)
	{
		this.runtimeScript = runtimeScript;
	}


	public String getDefaultScript()
	{
		return defaultScript;
	}


	public void setDefaultScript(String defaultScript)
	{
		this.defaultScript = defaultScript;
	}
	
	
	
	
	
}
